package com.practice.dubbo;

import java.io.IOException;

import org.springframework.context.support.ClassPathXmlApplicationContext;

import com.practice.dubbo.api.IHelloService;

public class Client {
	
	public static void main(String[] args) throws IOException {
		ClassPathXmlApplicationContext context = 
				new ClassPathXmlApplicationContext("dubbo-client.xml");
		
		IHelloService helloServer = (IHelloService)context.getBean("helloService");
		System.out.println(helloServer.sayHello("test"));
		
		System.in.read();
	}

}
